//
//  UserTableViewCell.m
//  EasyChat
//
//  Created by 萱草~ on 16/6/14.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "UserTableViewCell.h"

@implementation UserTableViewCell
-(void)dealloc{
    [_myImage release];
    [_myLabel release];
//    [_gapView release];
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.myImage = [[UIImageView alloc] init];
        [self.contentView addSubview:self.myImage];
        [_myImage release];
        
        self.myLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.myLabel];
        [_myLabel release];
        
//        self.gapView = [[UIView alloc] init];
//        self.gapView.backgroundColor = [UIColor grayColor];
//        [self.contentView addSubview:self.gapView];
//        [_gapView release];
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    self.myImage.frame = CGRectMake(7.5, 7.5, 35, 35);
//    self.myImage.backgroundColor = [UIColor blackColor];
    
    self.myLabel.frame = CGRectMake(self.myImage.frame.size.width + 30, 10, 100, 30);
    
//    self.myLabel.backgroundColor = [UIColor redColor];
//    self.gapView.frame = CGRectMake(0, self.contentView.frame.size.height - 1, self.contentView.frame.size.width, 1);
    
}

@end
